curl --request PUT \
--url http:///%7B{baseurl}%7D/api/v1/management/responses/{responseId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"data": {
"hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
"language": "en",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?",
"ttc": {
"hs8yd14l9h8u353tjmv6rzawqqq": 120,
"tcgls0063n8ri7dtrbnepcmz": 190
}
},
"finished": true
}'
{
"data": {
"createdAt": "2024-04-23T12:15:01.680Z",
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": true,
"id": "clvccml2p0009xz1zrlk1wbqb",
"language": "en",
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com",
"userAgent": {}
},
"notes": [],
"person": {
"attributes": {
"Created From": "API",
"created_from": "API"
},
"createdAt": "2024-04-23T07:39:22.696Z",
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc2s3ig000k494jltkqkm2u",
"updatedAt": "2024-04-23T07:39:22.696Z",
"userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING"
},
"personAttributes": {
"Created From": "API",
"created_from": "API"
},
"singleUseId": null,
"surveyId": "clus3omb00009oo10s53e2pa5",
"tags": [],
"ttc": {
"_total": 310,
"hs8yd14l9h8u353tjmv6rzawqqq": 120,
"tcgls0063n8ri7dtrbnepcmz": 190
},
"updatedAt": "2024-04-23T12:16:39.774Z"
}
}
Update an existing user response with new data
curl --request PUT \
--url http:///%7B{baseurl}%7D/api/v1/management/responses/{responseId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"data": {
"hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
"language": "en",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?",
"ttc": {
"hs8yd14l9h8u353tjmv6rzawqqq": 120,
"tcgls0063n8ri7dtrbnepcmz": 190
}
},
"finished": true
}'
{
"data": {
"createdAt": "2024-04-23T12:15:01.680Z",
"data": {
"hs8yd14l9h8u353tjmv6rzaw": "clicked",
"hs8yd14l9h8u353tjmv6rzawqqq": "clicked",
"tcgls0063n8ri7dtrbnepcmz": "Who? Who? Who?"
},
"finished": true,
"id": "clvccml2p0009xz1zrlk1wbqb",
"language": "en",
"meta": {
"action": "test action",
"source": "Postman API",
"url": "https://postman.com",
"userAgent": {}
},
"notes": [],
"person": {
"attributes": {
"Created From": "API",
"created_from": "API"
},
"createdAt": "2024-04-23T07:39:22.696Z",
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc2s3ig000k494jltkqkm2u",
"updatedAt": "2024-04-23T07:39:22.696Z",
"userId": "THIS-IS-A-VVERY-LONG-USER-ID-FOR-TESTING"
},
"personAttributes": {
"Created From": "API",
"created_from": "API"
},
"singleUseId": null,
"surveyId": "clus3omb00009oo10s53e2pa5",
"tags": [],
"ttc": {
"_total": 310,
"hs8yd14l9h8u353tjmv6rzawqqq": 120,
"tcgls0063n8ri7dtrbnepcmz": 190
},
"updatedAt": "2024-04-23T12:16:39.774Z"
}
}
OK
The response is of type object
.
Was this page helpful?